function toggleItem(id, prefix) {
	if(document.getElementById(prefix + '_' + id).style.display == "none") {
		document.getElementById(prefix + '_' + id).style.display = "";
		document.getElementById(prefix + '_pic_' + id).alt = "Ausklappen!";
		document.getElementById(prefix + '_pic_' + id).src = "./images/misc/minus.gif";
	} else {
		document.getElementById(prefix + '_' + id).style.display = "none";
		document.getElementById(prefix + '_pic_' + id).alt = "Einklappen!";
		document.getElementById(prefix + '_pic_' + id).src = "./images/misc/plus.gif";
	}
}
function toggleItemSingle(prefix,path) {
	if(document.getElementById(prefix).style.display == "none") {
		document.getElementById(prefix).style.display = "";
		document.getElementById(prefix + '_pic').alt = "";
		document.getElementById(prefix + '_pic').src = path + "minus.gif";
	} else {
		document.getElementById(prefix).style.display = "none";
		document.getElementById(prefix + '_pic').alt = "";
		document.getElementById(prefix + '_pic').src = path + "plus.gif";
	}
}
function addText(code, el) {
	nav = navigator.userAgent.toLowerCase();
	e = document.getElementById(el);
	if((nav.indexOf("msie") != -1)  && (nav.indexOf("opera") == -1)) {
		e.value += code;
	} else {
		x = e.value.substr(0, e.selectionStart);
		x += code;
		x += e.value.substr(e.selectionStart, e.textLength);
		e.value = x;
	}
	e.focus();
}

function ViewImage(bild, w, h, name) {
	window.open(bild, name, "width=" + w + ", height=" + h);
}

function ConfirmSubmit(Question)
{

      if(confirm(Question))

             return true;

      else

             return false;

}
function AlertPopup(Information)
{
    alert(Information)
}

function lon(target)
{
	try {
		if (parent.visibilityToolbar)
			parent.visibilityToolbar.set_display("standbyDisplayNoControls");
	} catch (e) {}

	try {
		if (!target)
			target = this;

		if (!target._lon_disabled_arr)
			target._lon_disabled_arr = new Array();
		else if (target._lon_disabled_arr.length > 0)
			return true;

		target.document.getElementById("loaderContainer").style.display = "";
		
		var select_arr = target.document.getElementsByTagName("select");

		for (var i = 0; i < select_arr.length; i++) {
			if (select_arr[i].disabled)
				continue;

			select_arr[i].disabled = true;
			_lon_disabled_arr.pop(select_arr[i]);
			var clone = target.document.createElement("input");
			clone.type = "hidden";
			clone.name = select_arr[i].name;
			var values = new Array();
			for (var n = 0; n < select_arr[i].length; n++) {
				if (select_arr[i][n].selected) {
					values[values.length] = select_arr[i][n].value;
				}
			}
			clone.value = values.join(",");
			select_arr[i].parentNode.insertBefore(clone, select_arr[i]);
		}
	} catch (e) {
		return false;
	}
	return true;
}

function loff(target)
{
	try {
		if (parent.visibilityToolbar) {
			parent.visibilityToolbar.set_display(visibilityCount
												 ? "standbyDisplay"
												 : "standbyDisplayNoControls");
		}
	} catch (e) {}

	try {
		if (!target)
			target = this;

		target.document.getElementById("loaderContainer").style.display = "none";

		if (target._lon_disabled_arr) {
			while(_lon_disabled_arr.length > 0) {
				var select = _lon_disabled_arr.push();
				select.disabled = false;

				var clones_arr = target.document.getElementsByName(select.name);
				for (var n = 0; n < clones_arr.length; n++) {
					if ("hidden" == clones_arr[n].type)
						clones_arr[n].parent.removeChild(clones_arr[n]);
				}
			}
		}
	} catch (e) {
		return false;
	}
	return true;
}
function get_workframe()
{
	try {
		if (top.workFrame.visibilityContent && !top.workFrame.removeMe)
			return top.workFrame.visibilityContent;
	} catch (e) {}
	if (top.workFrame)
		return top.workFrame;
	else
		return this;
}

function go_to(href)
{
	return go_to_workframe(href);
}

function go_to_workframe(href)
{
	_go_to(isFramed() ? get_workframe() : this, href);
}

function refresh_leftframe()
{
	_refresh(top.leftFrame);
}

function go_to_leftframe(href)
{
	_go_to(top.leftFrame, href);
}

function refresh_topframe()
{
	_refresh(top.topFrame);
}

function go_to_topframe(href)
{
	_go_to(top.topFrame, href);
}

function go_to_top(href)
{
	_go_to(top, href);
}

function _refresh(target)
{
	try {
		target.location.reload();
	} catch (e) {
	}
}

function _go_to(target, href)
{
	try {
		target.location = href;
	} catch (e) {
	}
}
function isFramed()
{
	return !opt_no_frames && top.workFrame && top.leftFrame && top.topFrame;
}
			var opt_no_frames = true;
			var opt_integrated_mode = false;